#ifndef EXPRESULTSPECTRALFRAME_H
#define EXPRESULTSPECTRALFRAME_H

#include <QFrame>
#include <QTreeWidgetItem>
#include "experiment.h"
#include "myqwtplot.h"

namespace Ui {
class ExpResultSpectralFrame;
}

class ExpResultSpectralFrame : public QFrame
{
    Q_OBJECT
    
public:
    explicit ExpResultSpectralFrame(QWidget *parent = 0,Experiment* pExperiment=NULL);
    ~ExpResultSpectralFrame();

    void LoadData();
    void ShowSpectralPlot();
    
private:
    Ui::ExpResultSpectralFrame *ui;
    Experiment* pExperiment;
    ExpSample *pExpSample;
    ExpConllectPara *pExpConllectPara;

    MyQwtPlot *pQwtPlotSpectral;

    QList<ExpRawData> rawDatas;
    QList <QwtPlotCurve *> curves;//
private slots:
    void OnTreeSpectralItemChanged(QTreeWidgetItem*,int);
    void OnTreeSpectralItemPressed(QTreeWidgetItem*,int);
};

#endif // EXPRESULTSPECTRALFRAME_H
